<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
 <%@ taglib prefix="s" uri="/struts-tags"%>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
     <head>
 
         <title>用户权限</title>
         <style type="text/css">
    		@import "css/table=.css";
		</style>
     </head>
 
    <body>
        <p><a href="login.jsp">用户登录</a>|<a href="registerAction!findall.action">用户列表</a></p>
        <s:form action="UserRightAction.action" theme="simple">
            <table>
                <tr>
                    <td style="text-align:right">
                        用户
                    </td>
                    <td>
                        <s:select label="选择用户" list="#session.user_list" name="userId" listKey="id" listValue="nameZh"	headerKey="-1" headerValue="---" emptyOption="false" />

                    </td>
                </tr>
                </table>
           <table width="1000px">
                 <s:iterator id="mlist" value="#session.menu_list" status="st">
	                <tr>                  
	                    <td>
	                      <s:property value="menuNameZh"/>
	                       	<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].menuId" value="<s:property value="#mlist.id"/>"> </input>   
	                       <s:if test='%{#mlist.extattr1=="b"}'>
	                       <font size="2px">
	                       	复核<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].fuHeOp" value="0"> </input>   
	                       	&nbsp;&nbsp;取消复核<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].cancelFuHeOp" value="0"> </input>
	                       	&nbsp;&nbsp;核销<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].heXiaoOp" value="0"> </input>
	                       	&nbsp;&nbsp;取消核销<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].cancelHeXiaoOp" value="0"> </input>
	                       	&nbsp;&nbsp;异常核销<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].heXiaoAbnorOp" value="0"> </input>
	                       	&nbsp;&nbsp;签批<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].qianPiOp" value="0"> </input>
	                       	&nbsp;&nbsp;取消签批<input type="checkbox"  name="rightlist[<s:property value="#st.index"/>].cancelQianPiOp" value="0"> </input>
	                       	</font>
	                       </s:if>
	                     </td>
	                </tr>
                </s:iterator>
           </table>                     
         
           <table>     
                <tr>
                    <td style="text-align:right">
                        <s:submit value="保存" />
                    </td>
                    <td style="text-align:left">
                        <s:reset value="取消"/>
                    </td>
                </tr>
            </table>
        </s:form>
        <s:fielderror cssStyle="color:red"/>
    </body>
</html>
